#pragma once

#include "materialeffect.h"
#include <osg\Vec4>

namespace VrDataCore
{
	class VRDATACORE_EXPORT AlphaEffect:public MaterialEffect
	{
	public:
		AlphaEffect();
	protected:
		~AlphaEffect();
	public:
		virtual void buildPropertyMap();
		virtual void apply(CoreBase::ActorBase* actor);
		virtual void unApply(CoreBase::ActorBase* actor);
		void setOpenAlpha(QString open);
		QString getOpenAlpha();
	private:
		QString							_isOpen;
		bool							_boolIsOpen;
	};
}